#ifndef QGRAPHICSITEMTOPIC_H
#define QGRAPHICSITEMTOPIC_H

#include "tableschema.h"

class MemoryGame;
class QGraphicsItemTopic : public QObject, public QGraphicsRectItem
{
    Q_OBJECT

public:
    QGraphicsItemTopic( int x, int y, int width, int height, MemoryGame & parent, const QString & topicName );
    virtual ~QGraphicsItemTopic();

private:
    virtual void paint( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0 );

private:
    MemoryGame & m_parent;
    QString m_topicName;

    static QBrush m_backroundBrush;
    static QFont m_font;
};

#endif
